home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15019 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: netnews.hinet.net!news
  2. From: terry@ms1.hinet.net (Chen Tai-Wei)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: A little programme I am having trouble with - ass1.cpp (0/1)
  5. Date: Wed, 03 Apr 1996 05:45:11 GMT
  6. Organization: KMC Psychology Department
  7. Message-ID: <31620f7b.14337854@netnews.hinet.net>
  8. References: <4jsf4q$f9o@news.mel.aone.net.au>
  9. NNTP-Posting-Host: 168.95.124.248
  10. X-Newsreader: Forte Agent .99d/32.182
  11.  
  12. On Wed, 03 Apr 1996 00:02:35 GMT, awedding@iig.com.au wrote:
  13.  
  14. >     I am tring to write the programme below but keep getting the
  15. >message "Possibly incorrect assignment in function main()" Could
  16. >someone PLEASE help me. If you could Email your response to 
  17. >    if ((TimeScale = D) && (Distance >745))
  18.  
  19. In C/C++, equality  is ==, assignment is =
  20.  
  21. >        cin >> CostPerMin = 0.55 ;
  22.  
  23. I can't see what is the purpose of this line above.
  24.  
  25. ---
  26. // Depression is an attribute of an object. Since protected by the 
  27. // private keyword, it still can be accessed by some method which 
  28. // is public or friend. It will be derived by the inheritance. And 
  29. // you can't find any destructors forever.
  30. // Copyright (C++) 1971-96 by Chen Tai-Wei, terry@ms1.hinet.net
  31.